const Koa = require('koa')
const router = require('koa-simple-router')
const route = require('./routes')
const config = require('config-lite')(__dirname)
const db = require('@root/mongodb/db')

const app = new Koa()

route(app)

app.listen(config.port, () => {
  console.log(`listening on port ${config.port}`)
})
